$(function () {
  var url = window.location.search;
  // console.log(url);?0
  var str = url.substr(1);
  console.log(str);
  
  

  $.ajax({
    type: "get",
    url: "http://193.112.55.79:9090/api/getproduct",
    data: {
      productid:str
    },
    dataType: "json",
    success: function (res) {
      var html = template("mmbtp", res.result);
      $(".ware").html(html);
    }
  });


$.ajax({
  type: "get",
  url: "http://193.112.55.79:9090/api/getproductcom",
  data: {
    productid:str
  },
  dataType: "json",
  success: function (res) {
    console.log(res);
    var html = template("mt_two", res.result);
    $(".appraise").html(html);
  }
});
})